Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix performance lag caused by scrollbar value set invoke #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix performance lag caused by scrollbar value set invoke #50

wants to merge 1 commit into from

Conversation

whilu
Copy link

@whilu whilu commented Dec 27, 2020

There is a bug will cause performance lag, the flow like this:

  1. When Scroller.UpdatePosition method is called, the custom onValueChanged action been invoked and the scrollbar value will be set.
  2. Then the scrollbar onValueChanged action will be invoke, and the Scroller.UpdatePosition method been called again, if the custom onValueChanged action is heavy, there will be some lag for UGUI layout.

Thanks for this lib!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants